<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body>
	<h2>管理员信息</h2>
	<%
		Object se_Name = session.getAttribute("se_Name") ;
		Object se_Dlm = session.getAttribute("se_Dlm") ;
		Object se_Tel = session.getAttribute("se_Tel") ;
		Object se_Sex = session.getAttribute("se_Sex") ;
	%>
	<form name = "fm">
	
		<table>
			<tr>
				<td>name:</td>
				<td>
					<input type = "text" name = "manager_name" value = "<%=se_Name %> " disabled>
				</td>
			</tr>
			<tr>
				<td>NO:</td>
				<td>
					<input type = "text" name = "manager_NO" value = "<%=se_Dlm %>" disabled>
				</td>
			</tr>
			<tr>
				<td>Tel:</td>
				<td>
					<input type = "text" name = "manager_NO" value = "<%=se_Tel %>" disabled>
				</td>
			</tr>
			<tr>
				<td>Sex:</td>
				<td>
					<input type = "text" name = "manager_NO" value = "<%=se_Sex %>" disabled>
				</td>
			</tr>
		</table>
		<hr/>
		<h2>请选择</h2>
			<table align = "center" width = "50%">
				<tr>
					<td>
						<input type = "button" name = "button_book4" value = "查询所有图书信息" onClick = "select_all_book()" style = "font-size:20px;font-family:'微软雅黑'"><br><br><br>
					</td>
					<td>
						<input type = "button" name = "button_student4" value = "查询所有学生信息" onClick = "select_all_student()" style = "font-size:20px;font-family:'微软雅黑'"><br><br><br>
					</td>
					<td>
						<input type = "button" name = "button_student_borrow" value = "查询所有学生借书信息" onClick = "select_all_borrow()" style = "font-size:20px;font-family:'微软雅黑'"><br><br><br>
					</td>
				</tr>
				<tr>
					<td>
						<input type = "button" name = "button_book1" value = "添加图书信息" onClick = "add_book()" style = "font-size:20px;font-family:'微软雅黑'"><br><br><br>
					</td>
					<td>
						<input type = "button" name = "button_student1" value = "添加人员信息" onClick = "add_student()" style = "font-size:20px;font-family:'微软雅黑'"><br><br><br>
					</td>
					<td>
						<input type = "submit" name = "button_renturn_book" value = "还书" onClick = "return_book()" style = "font-size:20px;font-family:'微软雅黑'"><br><br><br>
					</td>
				</tr>
				<tr>
				
					<td>
						<input type = "button" name = "button_book2" value = "修改图书信息" onClick = "modify_book()" style = "font-size:20px;font-family:'微软雅黑'"><br><br><br>
					
					<td>
			<input type = "button" name = "button_student2" value = "修改学生信息" onClick = "modify_student()" style = "font-size:20px;font-family:'微软雅黑'"><br><br><br>
					</td>
				</tr>
				<tr>
					<td>
						<input type = "button" name = "button_book3" value = "删除图书信息" onClick = "delete_book()" style = "font-size:20px;font-family:'微软雅黑'"><br><br><br>
					</td>
					<td>
						<input type = "button" name = "button_student3" value = "删除学生信息" onClick = "delete_student()" style = "font-size:20px;font-family:'微软雅黑'"><br><br><br>
					</td>
				</tr>
			</table>
			<div align="center" >
				<input type = "submit" name = "submit1" value = "退出登录" onclick = "return_login()" style = "font-size:20px;font-family:'微软雅黑';color: red;">
			</div>
	</form>

</body>
</html>
<script>
	function return_login(){
		document.fm.action = "aa_login.jsp";
	}
	function return_book(){
		document.fm.action = "return_book.jsp";
	}
	function add_student(){
		document.fm.action = "add_student.jsp";
		document.fm.submit();
	}
	function modify_student(){
		document.fm.action = "modify_student.jsp";
		document.fm.submit();
	}
	function delete_student(){
		document.fm.action = "delete_student.jsp";
		document.fm.submit();
	}
	function add_book(){
		document.fm.action = "add_book.jsp";
		document.fm.submit();
	}
	function modify_book(){
		document.fm.action = "modify_book.jsp";
		document.fm.submit();
	}
	function delete_book(){
		document.fm.action = "delete_book.jsp";
		document.fm.submit();
	}
	function select_all_book(){
		document.fm.action = "select_all_book.jsp";
		document.fm.submit();
	}
	function select_all_student(){
		document.fm.action = "select_all_student.jsp";
		document.fm.submit();
	}
	function select_all_borrow(){
		document.fm.action = "select_all_borrow.jsp";
		document.fm.submit();
	}
</script>